#! /bin/bash

container_name="im-user-rpc-dev"
tag="latest"
img_path="/home/xa/upload/"

# 清除本地原有镜像和容器
docker stop ${container_name}
docker rm ${container_name}
docker rmi ${container_name}:${tag}

# 加载新的镜像容器
docker load -i ${img_path}${container_name}.tar
docker run -p 8080:8080 --name=${container_name} -d ${container_name}:${tag} --network im-sys